package com.yupi.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("mc_processed_log")
public class McProcessedLog implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("consumer_name")
    private String consumerName;

    @TableField("event_id")
    private String eventId;

    @TableField("status")
    private String status; // SUCCESS/IGNORED/FAILED

    @TableField("info")
    private String info;

    @TableField("processed_at")
    private Date processedAt;

    private static final long serialVersionUID = 1L;
}